Apple II
Sample Code Notes
_____________________________________________________________________________
                                                  Developer Technical Support


#8:    List.Line.Edit

Version:    1.0                                                September 1988

APW Components:    Lists.Aii                      18 Aug 88
                   Lists.Inits.Aii                18 Aug 88
                   Lists.Macros                   18 Aug 88
                   Lists                          18 Aug 88

MPW Components:    Lists.Aii                      01 Sep 88
                   Lists.Inits.Aii                08 Jul 88
                   Makefile                       08 Jul 88

This sample program illustrates how to handle lists and line editing in an 
Apple IIGS application.  It shows how to call most List Manager and LineEdit 
procedures in 65816 assembly language, as well as how to handle events 
relating to both tool sets.  It also performs several operations within dialog 
boxes, such as placing controls in a window without using the Dialog Manager.  
This is the only Sample Code which currently supports Edit menu items Cut, 
Copy, Paste, and Clear.
_____________________________________________________________________________

The demo generates a window containing a user-definable list, a box for 
creating a new list entry, and several buttons for manipulating the list:  New 
Entry, Remove, Replace, UnHilite, and Sort.  LineEdit tools are used to create 
and edit a new line for the list in response to keyboard and mouse events, 
while List Manager tools are used to create and update the list in response to 
clicking on a line or a button.  Sorting is done in reverse order to 
demonstrate a custom sort routine.

Use APW 1.0 and Apple IIGS System Disk 3.2 or later to execute the Lists file 
included with the APW-compatible source code files.  To create a load file 
under APW, issue the following command:  ASML Lists.Aii Keep=Lists.

MPW IIGS users need MPW 2.02, MPW IIGS Tools 1.0, and any version of the MPW 
IIGS assembler.  The program name needed by the MPW Build menu's Build option 
is Lists.

